<?php

namespace App\Kuafu\CouponPackage\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CouponPackageCodeEnum extends BaseCodeEnum
{
    const ERR_COUPON_PACKAGE_REPEATED_OPERATE    = 416000;
    const ERR_COUPON_PACKAGE_PARAM_VALID         = 416001;
    const ERR_COUPON_PACKAGE_DB_ADD              = 416002;
    const ERR_COUPON_PACKAGE_DB_SET              = 416003;
    const ERR_COUPON_PACKAGE_DB_DEL              = 416004;
    const ERR_COUPON_PACKAGE_DB_PATCH            = 416005;
    const ERR_COUPON_PACKAGE_ID_NOT_EXIST        = 416006;
    const ERR_COUPON_PACKAGE_NAME_NOT_NULL       = 416007;
    const ERR_COUPON_PACKAGE_TIME_NOT_NULL       = 416008;
    const ERR_COUPON_PACKAGE_TYPE_NOT_NULL       = 416009;
    const ERR_COUPON_PACKAGE_STATUS_NOT_NULL     = 416010;
    const ERR_COUPON_NAME_NOT_NULL               = 416011;
    const ERR_COUPON_PACKAGE_SHOPS_NAME_NOT_NULL = 416012;
    const ERR_CREATED_BY_UID_NOT_NULL            = 416013;
    const ERR_COUPON_PACKAGE_NAME_EXIST          = 416014;
    const ERR_COUPON_PACKAGE_COUPON_EMPTY        = 416015;
    const ERR_COUPON_PACKAGE_NOT_STARTED         = 416016;
    const ERR_COUPON_PACKAGE_ENDED               = 416017;
    const ERR_COUPON_PACKAGE_NO_EXIST            = 416018;
    const ERR_COUPON_PACKAGE_NO_IMAGE            = 416019;
    const ERR_COUPON_PACKAGE_NOT_NULL            = 416020;

    const ERR_COUPON_PACKAGE_NO_SHOP_MAP = 5160001;
    const ERR_COUPON_PACKAGE_STATUS_DOWN = 5160002;
    const ERR_COUPON_PACKAGE_STOCK_EMPTY = 5160003;
    const ERR_COUPON_PACKAGE_BUY_ERROR   = 5160004;
    const ERR_COUPON_PACKAGE_HAS_BUY     = 5160005;


    const CODE_TEXT = [
        self::ERR_COUPON_PACKAGE_REPEATED_OPERATE    => "请勿重复操作",
        self::ERR_COUPON_PACKAGE_PARAM_VALID         => "参数校验错误",
        self::ERR_COUPON_PACKAGE_DB_ADD              => "新增失败",
        self::ERR_COUPON_PACKAGE_DB_SET              => "编辑失败",
        self::ERR_COUPON_PACKAGE_DB_DEL              => "删除失败",
        self::ERR_COUPON_PACKAGE_DB_PATCH            => "上下架失败",
        self::ERR_COUPON_PACKAGE_ID_NOT_EXIST        => "ID记录不存在",
        self::ERR_COUPON_PACKAGE_NAME_NOT_NULL       => "请填写活动名称",
        self::ERR_COUPON_PACKAGE_TIME_NOT_NULL       => "请填写活动时间",
        self::ERR_COUPON_PACKAGE_TYPE_NOT_NULL       => "请填写活动类型",
        self::ERR_COUPON_PACKAGE_STATUS_NOT_NULL     => "请填写活动状态",
        self::ERR_COUPON_NAME_NOT_NULL               => "请填写优惠券名称",
        self::ERR_COUPON_PACKAGE_SHOPS_NAME_NOT_NULL => "请填写活动门店",
        self::ERR_CREATED_BY_UID_NOT_NULL            => "请填写创建人",
        self::ERR_COUPON_PACKAGE_NAME_EXIST          => "活动名称不能重复",
        self::ERR_COUPON_PACKAGE_COUPON_EMPTY        => "活动绑定优惠券不能为空",
        self::ERR_COUPON_PACKAGE_NOT_STARTED         => "活动尚未开始",
        self::ERR_COUPON_PACKAGE_ENDED               => "活动已结束",
        self::ERR_COUPON_PACKAGE_NO_EXIST            => "活动不存在",
        self::ERR_COUPON_PACKAGE_NO_IMAGE            => "请上传图片",
        self::ERR_COUPON_PACKAGE_NOT_NULL            => "券包记录不存在",

        self::ERR_COUPON_PACKAGE_NO_SHOP_MAP => '店铺未绑定该券包',
        self::ERR_COUPON_PACKAGE_STATUS_DOWN => '券包状态不可销售',
        self::ERR_COUPON_PACKAGE_STOCK_EMPTY => '券包库存不足',
        self::ERR_COUPON_PACKAGE_BUY_ERROR   => '券包购买失败',
        self::ERR_COUPON_PACKAGE_HAS_BUY     => '您已购买过券包，不能重复购买',
    ];
}
